//配置多环境，根据不同环境配置相关请求信息，package.json 文件中配置多环境
let envName=JSON.parse(process.env.UNI_CUSTOM_DEFINE).NAME;
let identification=envName.indexOf('company')>=0?'units':envName.indexOf('economic')>=0?'broker':'user';
let wxAppid=envName.indexOf('company')>=0?'wxd75ddb642c290a5e':envName.indexOf('economic')>=0?'wx46dbe783e067d44a':'wx50334b07bc4c9954';
// let baseURL="http://weiang12.3322.org:11101"; //测试环境
// let wsURL="ws://weiang12.3322.org:11101/imServer/im" //测试环境
// let baseURL="/dev" //h5 运行代理
// let wsURL="/wss"
let baseURL="https://jjp.cnthr.com" ; //线上环境
let wsURL="wss://jjp.cnthr.com/imServer/im" //正式环境

const define = {
	identification:identification,//请求头身份取值，units-企业，user-用户，broker-经纪人端
	copyright: "Copyright @ 2024",
	baseURL:baseURL, // 接口请求地址
	comUploadUrl:`${baseURL}/xf-api/jeecg-system/sys/common/upload`,//图片上传地址
	wsURL:wsURL,//socket请求地址
	imgUrl:`${baseURL}/jeecg-system/sys/common/static/`,//小程序上传的图片渲染到页面上时图片地址前缀
	staticImgUrl:`${baseURL}/applet/linggong/`,//静态图片资源地址
	timeout: 1000000,
	aMapWebKey:'ZJ4BZ-LAVCM-AHV66-6HEKK-2MIWS-GJBKL',
	wxAppid:wxAppid,//小程序id
	cipherKey: 'EY8WePvjM5GGwQzn' // 加密key
}

export default define